
public class MyTimeAdd 
{
	private int hour;
	private int minute;
	private int second;
	public MyTimeAdd()
	{
		this.hour=12;
		this.minute=20;
		this.second=40;
	}
	public void addSecond(int second)
	{
		this.second+=second;
		if(this.second>=60)
		{
			addMinute(this.second/60);
			this.second%=60;
		}
	}
	public void addMinute(int minute)
	{
		this.minute+=minute;
		if(this.minute>=60)
		{
			addHour(this.minute/60);
			this.minute%=60;
		}
	}
	public void addHour(int hour)
	{
		this.hour+=hour;
		if(this.hour>=24)
		{
			this.hour%=24;
		}
	}
	@Override
	public String toString() 
	{
		return hour + ":" + minute + ":" + second;
	}
	
}
